//
//  SingUPViewViewController.m
//  AndCampus
//
//  Created by 史宵宵 on 2017/12/27.
//  Copyright © 2017年 史宵宵. All rights reserved.
//

#import "SingUPViewViewController.h"

@interface SingUPViewViewController ()

@end

@implementation SingUPViewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    [self.view addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(disSeleteMood:)]];
    self.view.userInteractionEnabled = YES;
}
- (void)disSeleteMood:(UITapGestureRecognizer *)tap{
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}
- (IBAction)redMood:(id)sender {
    if (self.selectMoodBlock) {
        self.selectMoodBlock(@"1");
    }
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}

- (IBAction)blackMood:(id)sender {
    if (self.selectMoodBlock) {
        self.selectMoodBlock(@"2");
    }
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}

- (IBAction)blueModel:(id)sender {
    if (self.selectMoodBlock) {
        self.selectMoodBlock(@"3");
    }
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}
- (IBAction)greenModel:(id)sender {
    if (self.selectMoodBlock) {
        self.selectMoodBlock(@"4");
    }
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
